<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<title></title>
<link rel="stylesheet" type="text/css" href="../../css/aui-win.css" />
<style type="text/css">
*{
	margin: 0;
	padding:0;
}
#divUlAdd{
	width:100%;
}
#divUlAdd li{
	width:33.333%;
	float:left;
	padding-top:5%;
	padding-bottom:3%;
}
#divUlAdd li img{
	width:80%;
	border-radius:10px;
	margin-left:10%;
}
body{
	background:#f9f9f9;
}
#divUlAdd li p{
	width:100%;
	font-size:14px;
	color:#999;
	text-align:center;
}
</style>
</head>
<body>

	<div class="div_loding_img">
		数据加载中
	</div>
	<header class="aui-bar aui-bar-nav aui-bar-yunzo" id="aui-header">
		<a class="aui-btn aui-bar-yunzo aui-pull-left" id="back" onclick="back_go()"> <span class="aui-iconfont aui-icon-left"></span></a>
		<div class="aui-title" id="title">
			
		</div>
	</header>
	<div class="margin_div"></div>
	<ul id="divUlAdd">
	</ul>
	
	  

	<script src="../../script/jquery-1.10.2.min.js"></script>
	<script src="../../script/common.js"></script>
	<script type="text/javascript">
	sTart_Stop();
		var ecid=getUrlParam("infoid");
		var a=getUrlParam("name");
		$("#title").html(a);
		var pagesize=10;
		var str="";
		var post;
		if($mid==null){
			post={
	        		mid:$mids,
	        		groupid:$groupidss,
	        		did:initdata.get('ecinfo'),
	        		pagesize:pagesize,
	        		ecptypeid:ecid
	        		}
		}
		else{
			post={
	        		mid:$mid,
	        		groupid:$groupid,
	        		did:initdata.get('ecinfo'),
	        		pagesize:pagesize,
	        		ecptypeid:ecid
	        		}	
		}
		
		ajaxcocRequest('../../../api/group/getgroupecprodListByTypeID', 'post', post, function(msg){
			if(msg.code==100){
				for(var i=0;i<msg.data.length;i++){
					str+='<li class="li'+i+'" onclick="openen(\'' + msg.data[i].n0 + '\',\'' + msg.data[i].n1 + '\')"><img src="'+msg.data[i].n3+'"><p>'+msg.data[i].n1+'</p></li>';
				}
				$("#divUlAdd").html(str);
				
				$("img").height($("img").width())
				var aA=document.getElementsByTagName('li');
				var a=0 ;
				for(var j=0;j<aA.length;j++){
					var num;
					if(j==a){
						num=j;
						$("#divUlAdd li").eq(num).css("background","#f3f3f3");			
					}
					if(j==a+1){
						num=j;
						$("#divUlAdd li").eq(num).css("background","#f3f3f3");
					}
					if(j==a+2){
						num=j;
						$("#divUlAdd li").eq(num).css("background","#f3f3f3");
						a=a+6;
					}
				}
				if(aA.length%3==2){
					$("#divUlAdd").append("<li style='background:#f3f3f3;'></li>")
				}
				if(aA.length%3==1){
					$("#divUlAdd").append("<li style='background:#f3f3f3;'></li><li style='background:#f3f3f3;'></li>")
				}
				$("#divUlAdd li").height($("#divUlAdd li").width())
			}
			else{
				$("body").append('<div class="wuwang"><img src="../../image/iconfont-wangluo.png"><p>网络拥堵，信息塞车</p></div>')
			}
		})
		function openen(num,name){
			window.location ='ecinfo_xiongdanfen.html?infoid='+num+'&name='+name;
		}
	</script>
</body>
</html>